"use strict";
const a = require("../../common/vendor.js"),
  e = require("../../api/request.js"),
  t = {
    __name: "managing-member",
    setup(t) {
      const n = a.ref([]),
        r = a.ref(!1),
        o = a.ref("");
      a.onLoad((async a => {
        const t = a._id;
        o.value = t;
        const u = await e.requestApi("/managing_member", {
          id: t,
          page: 1
        });
        console.log(u), n.value = u.data, r.value = !(u.data.length > 0)
      }));
      const u = a.ref(1);
      return a.onReachBottom((async () => {
        u.value++;
        const a = await e.requestApi("/managing_member", {
          id: o.value,
          page: u.value
        });
        n.value = [...n.value, ...a.data]
      })), (e, t) => a.e({
        a: a.f(n.value, ((e, t, n) => ({
          a: e.author_data[0].avatarUrl,
          b: a.t(e.author_data[0].nickname),
          c: a.t(e.timestamp),
          d: a.t(e.contact_inform),
          e: a.t(1 === e.gender ? "男" : "女"),
          f: a.t(e.introduce),
          g: t
        }))),
        b: r.value
      }, (r.value, {}))
    }
  };
wx.createPage(t);